package com.hancher.gamelife2.colockin;

import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.hancher.common.androidutil.AssetUtil;
import com.hancher.common.rv.BaseVBAdapter;
import com.hancher.gamelife2.databinding.ItemColockInEditBinding;

import java.io.File;

/**
 * 描述 : 打卡编辑 <br/>
 * 时间 : 2024/4/3 14:16 <br/>
 * 作者 : Hancher ytu_shaoweijie@163.com
 */
public class ColockInEditAdapter extends BaseVBAdapter<ItemColockInEditBinding, String> {


    @Override
    protected ItemColockInEditBinding createViewBinding(LayoutInflater from, ViewGroup viewGroup) {
        return ItemColockInEditBinding.inflate(from, viewGroup, false);
    }

    @Override
    protected void convertItem(ItemColockInEditBinding binding, int position, String item) {
        Bitmap bitmap = AssetUtil.getImage(getContext(), "colockintype" + File.separator + item);
        binding.itemImage.setImageBitmap(bitmap);
    }

}
